require 'octopus4r'
include Octopus4r

device = Device.new

device.open

pin1 = device.pin( PIN_29)
pin2 = device.pin( PIN_30)

pin1.direction = PIN_DIRECTION_OUT
pin2.direction = PIN_DIRECTION_OUT


10.times {
  pin1.value = 1
  sleep 0.1
  pin2.value = 1
  sleep 0.1
  pin1.value = 0
  sleep 0.1
  pin2.value = 0
  sleep 0.1
}

device.close
